#ifndef HTF_MS_BACKEND_H
#define HTF_MS_BACKEND_H

#include <stdint.h>   // for uint8_t
#include <stddef.h>   // for size_t
#include "../htf_ai_backend.h"  // for htf_ai_backend_ops_t

// Create a MindSpore（lite） backend instance (initial state)
void* htf_ms_backend_create(void);

// Get the operation function table
const htf_ai_backend_ops_t* htf_ms_backend_get_ops(void);

// For internal use by htf_ai_create: set the key and I/O sizes (not exposed to end users)
int htf_ms_backend_set_config(void* impl, const uint8_t* key, size_t key_len,
                              size_t input_size, size_t output_size);

#endif // HTF_MS_BACKEND_H